package org.jackysoft.struts2.business;
import java.util.Collection;

import javax.annotation.Resource;

import org.apache.struts2.convention.annotation.Namespace;
import org.jackysoft.entity.ContractClient;
import org.jackysoft.service.ContractClientService;
import org.jackysoft.struts2.UtilsCRUDAction;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;


@Controller
@Namespace("/contract/client")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public class ContractClientAction 
extends UtilsCRUDAction<ContractClient> {
	/**
	 * 
	 */
	private static final long serialVersionUID = 781879389100004675L;
	private ContractClientService service;
	private ContractClient bean;
	private Collection<ContractClient> beans;
	
	
	
	
	public void setBean(ContractClient bean){
	     this.bean = bean;
	}
	public ContractClient getBean(){
	     return this.bean;
	}
	public void setBeans(Collection<ContractClient> beans){
	     
	     this.beans = beans;
	}
	public Collection<ContractClient> getBeans(){
	     return this.beans;
	}
	
	@Resource
	public void setService(ContractClientService service) {
		this.service = service;
		this.setDataProvider(service);
	}	
	
	public ContractClientService getService(){
	   return this.service;
	}
		
}